package com.bootdo.wx.dao;

import com.bootdo.wx.domain.GoodsProductDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 商品产品
 * @author sys
 * @email 1992lcg@163.com
 * @date 2019-03-19 16:39:22
 */
@Mapper
public interface GoodsProductDao {

	GoodsProductDO get(String id);

	List<GoodsProductDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);

	int save(GoodsProductDO goodsProduct);

	int update(GoodsProductDO goodsProduct);

	int remove(String id);

	int batchRemove(String[] ids);

	List<GoodsProductDO> queryBySku(String uuid);

	int removeByGoodsId(String goodsId);

	int removeByGoodsIdJ(String goodsId);

	List<GoodsProductDO> getGoodsByGoodsId(Map<String, Object> params);

	Map<String, Object> getByGoodsIdAndSpec(Map<String, Object> params);

	Map<String, Object> getBySpikeIdAndSpec(Map<String, Object> params);

	Map<String, Object> getByNineIdAndSpec(Map<String, Object> params);

	Map<String, Object> getByTeamIdAndSpec(Map<String, Object> params);

	Map<String, Object> getByUpgradeIdAndSpec(Map<String, Object> params);

	int updateByOld(Map<String, Object> params);

	Map<String, Object> error(Map<String, Object> map);

	GoodsProductDO getIsDefaultByGoods(String goodsId);

	/**
	 * @author long
	 * 2020年7月23日上午9:22:11
	 * 方法释义:
	 * 参数:
	 */
	List<GoodsProductDO> getList(Map<String, Object> productMap);

	/**
	 * @author long
	 * 2020年8月1日下午2:29:21
	 * 方法释义:
	 * 参数:
	 */
	List<Map<String, Object>> getByNotInStock(String userId);

	int updateNumSale(Map<String, Object> proMap);
}


